﻿capital = 300


set_country_flag = monroe_doctrine


oob = "tabrasa_1936SPA"

every_core_state = {
	ROOT = {
		add_to_array = { cores_at_game_start = PREV }
	}
}


IF = {
	limit = {
		has_dlc = "Trial of Allegiance"
	}

	

	JUNO_set_shared_military_branch_defaults = yes

	add_ideas = idea_URG_low_amounts_of_external_debts
	set_war_support = 0.12
	set_stability = 0.39

}

IF = {
	limit = {
		NOT = {
			has_dlc = "Trial of Allegiance"
		}
	}
	recruit_character = URG_gabriel_terra
	recruit_character = URG_venancio_flores
	recruit_character = URG_bernardo_gonzález
	recruit_character = URG_juan_manuel_aguirre
	recruit_character = URG_ernesto_sanchez_elizondo
	recruit_character = URG_rafael_marques_ayala
	recruit_character = URG_a_martin_de_la_flores
	recruit_character = URG_carlos_neves_ochoa
	recruit_character = URG_hector_lopez_camara
	recruit_character = URG_valentin_gomez
	recruit_character = URG_enrico_amancias_rodriguez
	recruit_character = URG_cantido_quintio_reyes
	recruit_character = URG_cosme_alvarez_berisso
	recruit_character = URG_jorge_eloi_mendoza
	recruit_character = URG_vittorio_amato_masso
	recruit_character = URG_carlos_jackson_urribe
	recruit_character = URG_teo_bucardi_ramos
	recruit_character = URG_eleazar_diaz_caminate
	recruit_character = URG_manuel_heinz_azpurua
	recruit_character = URG_alfredo_baldomir
	recruit_character = URG_horacio_arredondo
	recruit_character = URG_paulo_ortega_frusci
	recruit_character = URG_emilio_frugoni
	ELSE_IF = {
		limit = {
			has_dlc = "Trial of Allegiance"
		}
		recruit_character = URG_gabriel_terra
		recruit_character = URG_adolfo_agorio
		recruit_character = URG_teodomiro_varela_de_andrade 
		recruit_character = URG_eugenio_gomez
		recruit_character = URG_arnulf_fuhrmann
		recruit_character = URG_luis_alberto_herrera
		recruit_character = URG_alfredo_baldomir_ferrari
		recruit_character = URG_ernesto_sanchez_elizondo
		recruit_character = URG_rafael_marques_ayala
		recruit_character = URG_a_martin_de_la_flores
		recruit_character = URG_carlos_neves_ochoa
		recruit_character = URG_hector_lopez_camara
		recruit_character = URG_valentin_gomez
		recruit_character = URG_enrico_amancias_rodriguez
		recruit_character = URG_cantido_quintio_reyes
		recruit_character = URG_cosme_alvarez_berisso
		recruit_character = URG_jorge_eloi_mendoza
		recruit_character = URG_vittorio_amato_masso
		recruit_character = URG_carlos_jackson_urribe
		recruit_character = URG_teo_bucardi_ramos
		recruit_character = URG_eleazar_diaz_caminate
		recruit_character = URG_manuel_heinz_azpurua
		recruit_character = URG_alfredo_baldomir
		recruit_character = URG_horacio_arredondo
		recruit_character = URG_paulo_ortega_frusci
		recruit_character = URG_emilio_frugoni
		recruit_character = URG_augustus_caesar_bado
		recruit_character = URG_jose_espalter
		recruit_character = URG_cesar_charlone
		recruit_character = URG_eduardo_victor_haedo
		recruit_character = URG_martin_recaredo_echegoyen
		recruit_character = URG_zoilo_saldias
		recruit_character = URG_juan_cesar_mussio_fournier
		recruit_character = URG_cesar_gutierrez
		recruit_character = URG_domingo_mendivil
		recruit_character = URG_andres_puyol
		recruit_character = URG_alfredo_campos
		recruit_character = URG_julio_roletti
		recruit_character = URG_esteban_elena
		recruit_character = URG_gervasio_de_posadas_belgrano


	}
}

# Starting tech
set_technology = {
	infantry_weapons = 1
	gw_artillery = 1
	interwar_antiair = 1
	interwar_antitank = 1
	basic_train = 1
	motorised_infantry = 1
	tech_support = 1
	basic_train = 1
	tech_trucks = 1 
}
add_equipment_to_stockpile = { type = train_equipment_1 amount = 75 producer = GER }

if = {
	limit = { has_dlc = "By Blood Alone" }
		set_technology = {
			aa_lmg = 1
			engines_1 = 1
			early_bombs = 1
			aircraft_construction = 1
			iw_small_airframe = 1
			iw_medium_airframe = 1
		}
	create_equipment_variant = {
		name = "I-15" 
		type = small_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = light_mg_2x
			engine_type_slot = engine_1_1x
			special_type_slot_1 = empty
		}
	}
	create_equipment_variant = {
		name = "DB-3"
		type = medium_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = medium_bomb_bay
			fixed_auxiliary_weapon_slot_1 = empty
			fixed_auxiliary_weapon_slot_2 = empty
			fixed_auxiliary_weapon_slot_3 = empty
			engine_type_slot = engine_1_2x
			special_type_slot_1 = lmg_defense_turret
			special_type_slot_2 = lmg_defense_turret
			special_type_slot_3 = empty
			special_type_slot_4 = empty
		}
	}	
	else = {
		set_technology = {
			early_fighter = 1
			early_bomber = 1
		}
	}
}	

if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = { 
		gwtank = 1
	}
}

if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = { 
		gwtank_chassis = 1
		
	}
}

if = {
	limit = {
		has_dlc = "Man the Guns"
	}
	set_technology = {
		basic_naval_mines = 1
		early_ship_hull_light = 1
		early_ship_hull_cruiser = 1
		basic_battery = 1
		basic_dp_light_battery = 1
		basic_torpedo = 1
		coastal_defense_ships = 1
	}
}
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	set_technology = {
		early_destroyer = 1
		early_light_cruiser = 1
	}
}

if = {
	limit = { has_dlc = "Man the Guns" }
	# Destroyers #
	create_equipment_variant = {
		name = "DD Class"			
		type = ship_hull_light_1
		name_group = URG_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = dp_light_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
	# Light Cruisers #
	create_equipment_variant = {
		name = "CL Class"					
		type = ship_hull_cruiser_1
		name_group = URG_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			fixed_ship_secondaries_slot = dp_ship_secondaries_1
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = empty
			rear_1_custom_slot = ship_airplane_launcher_1
		}
	}
	# Costal Defense #
	create_equipment_variant = {
		name = "CD Class"
		type = ship_hull_cruiser_coastal_defense_ship
		name_group = URG_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_heavy_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			fixed_ship_secondaries_slot = dp_ship_secondaries_1
			mid_1_custom_slot = dp_ship_secondaries_1
			mid_2_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
}





if = {
	limit = {
		has_dlc = "La Resistance"
	}
	set_technology = {
		armored_car1 = 1
	}
}

set_convoys = 20
set_research_slots = 4
add_political_power = 2000
add_manpower = 50000
add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 10000 }


set_popularities = {
	democratic = 25
	fascism = 25
	communism = 25
	neutrality = 25
}


set_politics = {
	ruling_party = democratic
	last_election = "1934.4.19"
	election_frequency = 48
	elections_allowed = yes
}


1939.1.1 = {
	set_politics = {
		ruling_party = democratic
		last_election = "1938.3.28"
		election_frequency = 48
		elections_allowed = yes
	}

	if = {
		limit = { has_dlc = "Trial of Allegiance" }
		complete_national_focus = URG_terras_dictatorship
		complete_national_focus = URG_statism
		complete_national_focus = URG_right_to_food_housing_and_health
		complete_national_focus = URG_womens_vote
		complete_national_focus = URG_prohibition_of_usury
		complete_national_focus = URG_break_relations_with_the_ussr
		complete_national_focus = URG_tour_to_italy
		complete_national_focus = URG_recognize_francoist_spain
		complete_national_focus = URG_rincon_del_bonete_hydroelectric_power_station
		complete_national_focus = URG_revaluation_law
		complete_national_focus = URG_brou
		complete_national_focus = URG_pay_of_all_external_debts
		complete_national_focus = URG_ministry_of_public_works
		complete_national_focus = URG_import_substitution
		complete_national_focus = URG_rapid_industrialization
		complete_national_focus = URG_rincon_del_bonete_dam
		complete_national_focus = URG_la_teja_refinery
		complete_national_focus = URG_pluna
		complete_national_focus = URG_conaprole
		complete_national_focus = URG_mercado_modelo
	}
	if = {
		limit = { NOT = { has_dlc = "Trial of Allegiance" }}
		#generic focuses
		complete_national_focus = army_effort
		complete_national_focus = equipment_effort
		complete_national_focus = motorization_effort
		complete_national_focus = aviation_effort
		complete_national_focus = naval_effort
		complete_national_focus = flexible_navy
		complete_national_focus = industrial_effort
		complete_national_focus = construction_effort
		complete_national_focus = production_effort
	}
	


	IF = {
		limit = {
			NOT = {
				has_dlc = "Trial of Allegiance"
			}
		}
		recruit_character = URG_alfredo_baldomir_ferrari
		promote_character = URG_alfredo_baldomir_ferrari
		retire_character = URG_gabriel_terra
		ELSE_IF = {
			limit = {
				has_dlc = "Arms Against Tyranny"
			}
			retire_character = URG_gabriel_terra
		}
	}

	IF = {
		limit = {
			has_dlc = "Trial of Allegiance"
		}
		remove_ideas = {
			URG_terra_dictatorship
		}
	}
}
